<template>
  
  <Person :list="personList" ref="ren"/>   <!-- 注意冒号 -->
</template>

<script setup lang="ts" name="App">
  import Person from './components/Person.vue'
  import {reactive} from 'vue'
  import {type Persons} from './types'
  //数据
  let personList = reactive<Persons>([   //<Persons>范式
    {id:'lsjdjdf01',name:"张三",age:18},
    {id:'lsjdjdf02',name:"李四",age:19},
    {id:'lsjdjdf03',name:"王五",age:20}
])
  //方法

  
</script>


